﻿using System;
using System.Threading.Tasks;
using Thinker.SignChannel.Entities;
using Volo.Abp.Domain.Repositories;

namespace Thinker.SignChannel.Repositories;

public interface IPersonTimeRepository : IRepository<PersonTime, Guid>
{
    Task<PersonTime?> FindByKeyAsync(Guid personId, Guid timeId)
    {
        return FindAsync(e => e.PersonId == personId && e.TimeId == timeId);
    }
}